//
//  DGBlockAlertView.h
//  DGUIKit
//
//  Created by Jinxiao on 6/9/13.
//  Copyright (c) 2013 debugeek. All rights reserved.
//

@interface DGBlockAlertView : UIAlertView

typedef void (^DGBlockAlertViewBasicBlock) (void);
typedef void (^DGBlockAlertViewIndexBlock) (NSInteger index);

@property (nonatomic, copy) DGBlockAlertViewBasicBlock didCancelBlock;
@property (nonatomic, copy) DGBlockAlertViewBasicBlock willPresentBlock;
@property (nonatomic, copy) DGBlockAlertViewBasicBlock didPresentBlock;
@property (nonatomic, copy) DGBlockAlertViewIndexBlock didClickButtonBlock;
@property (nonatomic, copy) DGBlockAlertViewIndexBlock willDismissWithButtonBlock;
@property (nonatomic, copy) DGBlockAlertViewIndexBlock didDismissWithButtonBlock;

+ (instancetype)alertWithTitle:(NSString *)title message:(NSString *)message cancelTitle:(NSString *)cancelTitle cancelBlock:(DGBlockAlertViewBasicBlock)cancelBlock confirmTitle:(NSString *)confirmTitle comfirmBlock:(DGBlockAlertViewBasicBlock)comfirmBlock;

@end
